/* iot-platform/assets/css/device-detail.css */

/* 1. 详情页整体布局 */
.device-detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 2. 面包屑和标题区域 */
.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.detail-header .back-link {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-right: 16px;
    text-decoration: none;
}
.detail-header .title {
    font-size: 18px;
    font-weight: 600;
}

/* 3. Tab导航样式 */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}
.tab-item {
    padding: 12px 20px;
    cursor: pointer;
    color: #595959;
    position: relative;
    bottom: -2px; /* 让下边框重叠 */
    border-bottom: 2px solid transparent;
}
.tab-item.active {
    color: #1890ff;
    font-weight: 600;
    border-bottom-color: #1890ff;
}

/* 4. Tab内容面板 */
.tab-content {
    flex-grow: 1;
    overflow-y: auto;
}
.tab-pane {
    display: none; /* 默认所有面板都隐藏 */
}
.tab-pane.active {
    display: block; /* JS会给当前面板加上 active 类来显示它 */
}

/* 5. 详情信息面板样式 */
.info-list {
    max-width: 600px;
}
.info-list .info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.info-list .info-label {
    width: 120px;
    color: #8c8c8c;
    flex-shrink: 0;
}
.info-list .info-value {
    flex-grow: 1;
}
.info-list .actions {
    margin-top: 24px;
}

/* 6. 物模型数据面板样式 */
.model-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.model-card {
    border: 1px solid #f0f0f0;
    padding: 16px;
    border-radius: 4px;
}
.model-card .title { font-weight: 600; margin-bottom: 8px; }
.model-card .value { font-size: 20px; font-weight: bold; margin-bottom: 16px; }
.model-card .footer { display: flex; justify-content: space-between; font-size: 12px; color: #8c8c8c; }